package com.cxl.live.system.dto;

import com.cxl.live.base.BaseDTO;
import com.cxl.live.util.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;
import java.util.Date;

/**
 * @Description: User
 * 系统用户
 * @Author: ChenXueLi
 * @Date: 2018-11-10 13:03
 */
@EqualsAndHashCode(callSuper = true)
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "c_user")
public class User extends BaseDTO {

    @ApiModelProperty(value = "用户ID")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @OrderBy("DESC")
    private Integer userId;

    @ApiModelProperty(value = "账号")
    private String userAccount;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "密码")
    private String userPassword;

    @ApiModelProperty(value = "账号状态（1可用0不可用）")
    private Integer userState;

}
